-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(suite): add @typescript-eslint/strict-boolean-expressions rule as warning #10757
Conversation
d88e753
to
7368b2a
Compare
.eslintrc.js
Outdated
@@ -11,6 +11,8 @@ module.exports = { | |||
ecmaFeatures: { | |||
jsx: true, | |||
}, | |||
project: ["./tsconfig.json"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is required to have for @typescript-eslint/strict-boolean-expressions
rule to work
@@ -0,0 +1,5 @@ | |||
module.exports = { | |||
parserOptions: { | |||
tsconfigRootDir: __dirname, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every package needs to have this ti make sure the eslint uses the local tsconfig
and not the global one as most of packages has some custom configurations.
@@ -1,3 +1,4 @@ | |||
// eslint-disable-next-line @typescript-eslint/no-shadow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think those errors poped up when ESLint got the type-information from typescript. But not sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be somehow globally imported from typescript/lib/lib.dom.d.ts
7368b2a
to
b7ff1c7
Compare
4c888a6
to
d5c2f3c
Compare
|
d5c2f3c
to
0e38f52
Compare
5fd4d23
to
c93d308
Compare
b13e2d3
to
0735de8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's be brave
🚢 🇮🇹
0735de8
to
6abf320
Compare
6abf320
to
be0701c
Compare
yarn nx:lint:js